#include<stdio.h>
#include<stdlib.h>
void GetMemory(char* p) {
	p = (char*)malloc(100);
}
char* GetMemory1(char* p) {
	p = (char*)malloc(100);
	return p;
}
void GetMemory2(char** p) {
	*p = (char*)malloc(100);
}
int main() 
{
	char* str = NULL;
	GetMemory2(&str);
	strcpy(str, "hello world");
	printf(str);
	free(str);
	return 0;
}